// 定义用来操作活动数据的对象 （增删改查）
let mongoose = require('mongoose')
//【1】约定表结构                货架
let Schema = mongoose.Schema 
let actSchema = new Schema({ //具体的一张表实例对象
  "poster": String,
  "title": String,
  "intro": String,
  "detail":String
})

//【2】定义操作表的model对象     取货员
let activityModel = mongoose.model('activityModel',actSchema)

//【3】对外抛出model对象
module.exports = activityModel